#get datetime
from datetime import datetime
now = datetime.now()
print(now)

now = datetime.strftime(now,'%Y-%m-%d_%H:%M:%S.%f') #format datetime
print(now)
